<template>
<input type="text" placeholder="Search" v-model="message.q" />
<button @click="gets">提问</button>
</template>
<script setup>
import { ref,onMounted } from 'vue'
import { ElTable, ElTableColumn, ElPagination, ElButton} from 'element-plus'
import axios from 'axios';
import { useRouter } from 'vue-router';
const router = useRouter()

const message = ref({
    q:''
})
const gets=()=>{
    axios.post('http://localhost:8000/zhxy/llm/',message.value).then(res=>{
        console.log(res.data)

    }).catch(err=>{
        console.log(err)
    })
  
}


</script>